﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EvidenceManagement.Model.Security;

namespace EvidenceManagement.Logic.Security
{    
    public class MonitoredAction
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MonitoredAction"/> class.
        /// </summary>
        public MonitoredAction()
        {
            PermissionType = ActionPermission.Deny;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MonitoredAction"/> class.
        /// </summary>
        /// <param name="actionName">Name of the action.</param>
        /// <param name="permissionType">Type of permission to grant on the action.</param>
        public MonitoredAction(string actionName, ActionPermission permissionType)
        {
            ActionName = actionName;
            PermissionType = permissionType;
        }

        /// <summary>
        /// Gets or sets the name of the action.
        /// </summary>
        /// <value>The name of the action.</value>
        public string ActionName
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the type of the permission.
        /// </summary>
        /// <value>The type of the permission.</value>
        public ActionPermission PermissionType
        {
            get;
            set;
        }
    }
}
